package cn.iocoder.aics.module.member.controller.admin.chathistory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 聊天记录新增/修改 Request VO")
@Data
public class ChatHistorySaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9294")
    private Long id;

    @Schema(description = "类型", example = "1")
    private Integer type;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11218")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "上下文ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11218")
    @NotNull(message = "上下文ID不能为空")
    private Long contextId;

    @Schema(description = "问题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "问题不能为空")
    private String question;

    @Schema(description = "答案")
    private String answer;

}